/**
 * Created Date: Monday, October 23rd 2023, 6:07:58 pm
 * Author: CodingGorit
 * -----
 * Last Modified: Mon Oct 23 2023
 * Modified By: CodingGorit
 * -----
 * Copyright © 2019 —— 2023 fmin-courses TP Center All Rights Reserved
 * ------------------------------------
 * Javascript will save your soul!
 */

import { onUnmounted } from "vue";

function useDOMCreate(nodeId: string) {
    const node = document.createElement('div');
    node.id = nodeId;
    document.body.appendChild(node);
    onUnmounted(() => {
        document.body.removeChild(node);
    });
}

export default useDOMCreate;